CFLAGS = -Wall --ansi -g

gestion: obj/digraph.o obj/queue.o obj/pert.o obj/getnum.o 
	gcc $(CFLAGS) src/main.c  obj/* -o gestion -I include -lgvc -lm
 
obj/digraph.o: src/digraph.c  
	gcc $(CFLAGS) -c src/digraph.c -o obj/digraph.o -I include
	
obj/queue.o: src/queue.c 
	gcc $(CFLAGS) -c src/queue.c -o obj/queue.o -I include
	
obj/pert.o: src/pert.c
	gcc $(CFLAGS) -c src/pert.c -o obj/pert.o -I include
	
obj/getnum.o: src/getnum.c 
	gcc $(CFLAGS) -c src/getnum.c -o obj/getnum.o -I include
	
clean:
	rm -rf obj/*
	rm -f gestion
	
